package com.example.administrator.baikangxing.activity;

import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.View;

import com.example.administrator.baikangxing.R;
import com.example.administrator.baikangxing.adapter.SplashAdapter;
import com.example.administrator.baikangxing.fragment.SplashOneFragment;
import com.example.administrator.baikangxing.fragment.SplashThreeFragment;
import com.example.administrator.baikangxing.fragment.SplashTwoFragment;

import java.util.ArrayList;
import java.util.List;

public class NewSplashActivity extends BaseActivity {

    private ViewPager splash_vp;

    @Override
    public int getContentViewLayoutId() {
        return R.layout.activity_new_splash;
    }

    public void initView() {
        base_ll_title.setVisibility(View.GONE);
        splash_vp = (ViewPager) findViewById(R.id.splash_vp);
        List<Fragment> list = new ArrayList<>();
        list.add(new SplashOneFragment());
        list.add(new SplashTwoFragment());
        list.add(new SplashThreeFragment());
        SplashAdapter adapter = new SplashAdapter(getSupportFragmentManager(),list);
        splash_vp.setAdapter(adapter);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }
}
